<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>WIKINDX CLASS DOCUMENTATION</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/wikindx2/docs/docs.css" type="text/css" />
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h2>WIKINDX METHODS</h2>
<p><strong>Method:</strong><br />
  
  writeCreatorTable()
</p>
<p><strong>Class:</strong><br />
  <a href="importcommonClass.html">IMPORTCOMMON</a>
<p><strong>Method Call:</strong><br />
  include_once("core/file/import/IMPORTCOMMON.php");<br />
  $common = new IMPORTCOMMON($this-&gt;db);  <br />
INT $common->writeCreatorTable(STRING: $firstname, STRING: $initials, STRING: $prefix, STRING: $surname);
</p>
<p><strong>Description:</strong><br /> 
  Write a creator name to the database and return the creator ID. If the creator already exists in the database, that creator's ID is returned, if not, the new creator is written to the database and the new ID returned. To not write any part ($surname is required), use either FALSE or an empty string. Any initials are expected to be space-delimited.</p>
<p>Once you have an ID back from this function, it needs to be written to the appropriate <em>creatorx</em> field of <em>WKX_resource_creator</em> for that resource. </p>
<p></p>
<strong>Usage:</strong><br />
  
Example:<br />
<pre>
	include_once("core/file/import/IMPORTCOMMON.php");
	$common = new IMPORTCOMMON($this->db);
	$creatorId = $common->writeCreatorTable("Mickey", &quot;W D&quot;, FALSE, "Mouse");
</pre> 

<p align="right"><a href="../../index.html">WIKINDX home</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../../usage/index.html">WIKINDX usage</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../index.html">WIKINDX classes</a>
</p>
</body>

</html>
